package com.annotation.config;

import com.annotation.entities.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import javax.annotation.Resource;

@PropertySource(value = "classpath:Person.properties")
@Configuration
public class MainConfigPropertiesSource {

//    @Autowired()
    @Bean
    public Person person(){
        return new Person();
    }

}
